#include "stream.h"
#include <iostream>
#include <string>
#include <thread>

int main() {
    Stream stream("tcp://localhost:5555", true);
    while (true) {
        stream.receiveMessage();
        stream.sendMessage("Response from server", "Server");
    }
    return 0;
}